List<FileModel> getFileModelList(List<dynamic> list) {
  final List<FileModel> result = [];
  list.forEach((item) {
    result.add(FileModel.fromJson(item as Map<String, dynamic>));
  });
  return result;
}

class FileModel {
  FileModel(
      {this.uploadStatus,
        this.uploadMsg,
        this.video,
        this.fileName,
        this.imageUrl,
        this.videoUrl,
        this.videoCoverUrl,
        this.duration});

  FileModel.fromJson(Map<String, dynamic> json) {
    uploadStatus = json['uploadStatus'] as bool;
    uploadMsg = json['uploadMsg'];
    video = json['video'] as bool;
    fileName = json['fileName'] as String;
    imageUrl = json['imageUrl'] as String;
    videoUrl = json['videoUrl'] as String;
    videoCoverUrl = json['videoCoverUrl'] as String;
    duration = json['duration'];
  }

  bool? uploadStatus;
  dynamic uploadMsg;
  bool? video;
  String? fileName;
  String? imageUrl;
  String? videoUrl;
  String? videoCoverUrl;
  dynamic duration;

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['uploadStatus'] = uploadStatus;
    data['uploadMsg'] = uploadMsg;
    data['video'] = video;
    data['fileName'] = fileName;
    data['imageUrl'] = imageUrl;
    data['videoUrl'] = videoUrl;
    data['videoCoverUrl'] = videoCoverUrl;
    data['duration'] = duration;
    return data;
  }
}